import request from '@/sheep/request';

const inviteApi = {
	// 邀请基础信息
	getInvitation: () => {
	  return request({
	    url: '/member/user/get-invitation',
	    method: 'GET',
	    custom: {
	      showLoading: true,
	      auth: true,
	    },
	  });
	},
	// 直邀好友列表
	getInvitationList: (data) => {
	  return request({
	    url: '/member/user/get-invitation-list',
	    method: 'GET',
		data,
	    custom: {
	      showLoading: true,
	      auth: true,
	    },
	  });
	},
	// 二级好友列表
	getMemberUserInfo: (data) => {
	  return request({
	    url: '/member/user/get-member-user-info',
	    method: 'GET',
		data,
	    custom: {
	      showLoading: true,
	      auth: true,
	    },
	  });
	},
	//我的邀请人信息
	getMyInvitation: () => {
	  return request({
	    url: `/member/user/get-myInvitation`,
	    method: 'GET',
	    custom: {
	      showLoading: true,
	      auth: true,
	    },
	  });
	},
	//获取分享二维码
	getQrcode: () => {
	  return request({
	    url: `/member/user/get-qrcode`,
	    method: 'GET',
	    custom: {
	      showLoading: true,
	      auth: true,
	    },
	  });
	},
}

export default inviteApi;